package com.itheima;

//类:对象的数据结构(对象的模版)
public class Student {
    String name; //名称
    double chinese;//语文成绩
    double math; //数学成绩

    //打印总成绩
    public void printAllScore() {
        System.out.println(name + "总成绩是: " + (chinese + math));
    }

    //打印平均成绩
    public void printAverageScore() {
        System.out.println(name + "平均成绩是: " + (chinese + math) / 2);
    }
}
